package org.nfIt;

import org.nfIt.config.SpringConfig;
import org.nfIt.domain.Zh;
import org.nfIt.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

/**
 * ClossName:App
 * Pakage:org.nfIt
 * Description
 *
 * @Author L
 * @Create 2024/5/4 2:02
 * @Version 2023.1.3
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserServiceImpl bean = applicationContext.getBean(UserServiceImpl.class);
        List<Zh> list = bean.selectAllUsers();
        System.out.println(list);
    }
}
